package com.cyh.pangu.offer;

public class Offer03 {
    public int findRepeatNumber(int[] nums) {
        Integer[] tempNums = new Integer[nums.length];
        for (int num : nums) {
            Integer value = tempNums[num];
            if (value != null) {
                return value;
            } else {
                tempNums[num] = num;
            }
        }
        return 0;
    }
}
